package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RentalManagementMapper;
import com.ruoyi.system.domain.RentalManagement;
import com.ruoyi.system.service.IRentalManagementService;

/**
 * 租房管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-11
 */
@Service
public class RentalManagementServiceImpl implements IRentalManagementService 
{
    @Autowired
    private RentalManagementMapper rentalManagementMapper;

    /**
     * 查询租房管理
     * 
     * @param id 租房管理主键
     * @return 租房管理
     */
    @Override
    public RentalManagement selectRentalManagementById(Long id)
    {
        return rentalManagementMapper.selectRentalManagementById(id);
    }

    /**
     * 查询租房管理列表
     * 
     * @param rentalManagement 租房管理
     * @return 租房管理
     */
    @Override
    public List<RentalManagement> selectRentalManagementList(RentalManagement rentalManagement)
    {
        return rentalManagementMapper.selectRentalManagementList(rentalManagement);
    }

    /**
     * 新增租房管理
     * 
     * @param rentalManagement 租房管理
     * @return 结果
     */
    @Override
    public int insertRentalManagement(RentalManagement rentalManagement)
    {
        return rentalManagementMapper.insertRentalManagement(rentalManagement);
    }

    /**
     * 修改租房管理
     * 
     * @param rentalManagement 租房管理
     * @return 结果
     */
    @Override
    public int updateRentalManagement(RentalManagement rentalManagement)
    {
        return rentalManagementMapper.updateRentalManagement(rentalManagement);
    }

    /**
     * 批量删除租房管理
     * 
     * @param ids 需要删除的租房管理主键
     * @return 结果
     */
    @Override
    public int deleteRentalManagementByIds(Long[] ids)
    {
        return rentalManagementMapper.deleteRentalManagementByIds(ids);
    }

    /**
     * 删除租房管理信息
     * 
     * @param id 租房管理主键
     * @return 结果
     */
    @Override
    public int deleteRentalManagementById(Long id)
    {
        return rentalManagementMapper.deleteRentalManagementById(id);
    }
}
